<%@page import="bean.FmBoardDTO"%>
<%@page import="bean.FmBoardVo"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel = 'stylesheet' href='./FmBoard/Board.css'/>
<script src='./FmBoard/Board.js'></script>
</head>
<body>
<jsp:useBean id="vo" class="bean.FmBoardVo" scope="page"></jsp:useBean>
<jsp:setProperty property="*" name="vo"/>

<%
FmBoardDTO dto = new FmBoardDTO();
if(request.getParameter("mid")!=null){
	dto.setVo(vo);		
}else{
	FmBoardVo vo2 = new FmBoardVo(request);
	dto.setVo(vo2);
}
if(dto.modify()){%>
 	<script>location.href='index.jsp?inc=./FmBoard/bView.jsp&rno=<%=dto.getVo().getRno()%>'</script>
<%} else{out.print("수정 실패");}%>
<p/>


<input type='button' value='목록' id='btnList'/>

<form name='hiddenFrm' method='post' >
	<input type='hidden' name='nowPage' value='<%=dto.getVo().getNowPage() %>'/>
	<input type='hidden' name='kindFind' value='<%=dto.getVo().getKindFind()%>'/>
	<input type='hidden' name='locateFind' value='<%=dto.getVo().getLocateFind()%>'/>
	<input type='hidden' name='genderFind' value='<%=dto.getVo().getGenderFind()%>'/>
	<input type='hidden' name='find' value='<%=dto.getVo().getFind()%>'/>
</form>

<script>bModifyInit();</script>


</body>
</html>